<%--
  Created by IntelliJ IDEA.
  User: 韩金龙
  Date: 2021/11/29
  Time: 10:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery-1.8.2.min.js"></script>
    <script src="js/fileupload.js"></script>
    <link rel="stylesheet" href="css/css.css">
    <link rel="stylesheet" href="css/imh.css">
</head>
<body>
    添加
    <button onclick="add()">添加</button>
</body>
<script>
    function add() {
        $.ajax({
            url:"add.do",
            type:"post",
            dataType:"json",
            success:function(obj) {
                if (obj>0){
                    alert("添加成功!!")
                    location="list.do";
                }
            }
        })
    }
</script>
</html>
